package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_zhenhuan_third_open_banquet",
        autoSave = true,
        dataUpload = true,
        eventName = "zhguest_thir",
        desc = "甄嬛无双门客-甄嬛三阶段开宴会",
        uploadCk = true
)
public class LogZhenHuanThirdOpenBanquet extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "活动Id", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "宴会id", dataAttribute = "zhguest_thirid")
    private int banquetId;
    @FieldTypeAnnotation(desc = "累计开宴次数")
    private int banquetTimes;
    @FieldTypeAnnotation(desc = "使用道具id", dataAttribute = "zhguest_thirgood")
    private int goodsId;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogZhenHuanThirdOpenBanquet(int activityId, long userId, int banquetId, int banquetTimes, int goodsId) {
        this.activityId = activityId;
        this.userId = userId;
        this.banquetId = banquetId;
        this.banquetTimes = banquetTimes;
        this.goodsId = goodsId;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
